const bcrypt = require('bcrypt')
const saltRounds = 11

const encrypt = (password) => {   
    const salt = bcrypt.genSaltSync(saltRounds)
    const hash = bcrypt.hashSync(password, salt)
    return hash
}

module.exports = {
    encrypt
}